﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Mvcmediaplayer.Helpers.PageList>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Movie List
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	 <div id="silverlightControlHost"  style=" width:100%;  height:300px; text-align:center;">
	 <ul id="video-list">
	 <%foreach (var video in Model) {  %>
	 <li>
	 <a href="<%: Url.Action("Details",new {id=video.Id }) %>">
	 <img src="../../<%: video.image%>" alt='test' />
	 </a>
	 </li>
	 <%} %>
	 </ul>
		</div>		
	  <div style="height:50px; width:600px;">
	  <br />
	 <div style=" float:right;">
	  <%if (Model.HasPreviousPage)
		{%>
	  <a href="<%:Url.Action("Index", new {Id=(Model.PageIndex-1)}) %>"><img style=" border:none;" src="../../images/previous.jpg"/></a><%} %>
	  <% if (Model.HasNextPage) {  %>
	   <a href="<%:Url.Action("Index", new {Id=(Model.PageIndex+1)}) %>"><img style=" border:none" src="../../images/next.jpg"/></a><%} %></div>
	  </div>
</asp:Content>


